package com.asj.house.service;

import com.asj.house.entity.HouseIntermediary;
import com.asj.house.entity.HouseRoomIntermediary;
import com.asj.house.returns.RespEntity;
import com.asj.house.returns.RespTable;
import com.asj.house.vo.param.RoomParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 中介信息表 服务类
 * </p>
 *
 * @author asj
 * @since 2021-03-16
 */
public interface HouseIntermediaryService extends IService<HouseIntermediary> {
    /**
     * 中介信息列表
     * @param roomParam
     * @return
     */
    RespTable<List<HouseIntermediary>> listHouseRoomIntermediary(RoomParam roomParam);

    /**
     * 新增中介信息
     * @param houseIntermediary
     * @return
     */
    RespEntity insertHouseIntermediary(HouseIntermediary houseIntermediary);

    /**
     * 编辑中介信息
     * @param houseIntermediary
     * @return
     */
    RespEntity updateHouseIntermediary(HouseIntermediary houseIntermediary);

    /**
     * 删除中介信息
     * @param id
     * @return
     */
    RespEntity deleteHouseIntermediary(Integer id);

    /**
     * 批量删除中介信息
     * @param ids
     * @return
     */
    RespEntity deleteBatchHouseIntermediary(Integer[] ids);
}
